WIP: Use simple pthread_rwlock in place of our custom adaptive rwlock

Ondřej Surý requested to merge use-pthread-rwlock into master

Merge request reports