Add a configure check for pthread_rwlock_init.