pthread rwlock: add documentation