e717f7a1b3
Firstly, rwsem is semantically different from flock (but this was known) and this may confuse the API consumer. Secondly, the locking infrastructure is purely meant for inter-process synchronization, threads synchronization is not a current use case.