unit-tests: Add a rwlock condvar test