Add initial support for pthread_rwlock