Add pthread_rwlock test