Add pthread_rwlock functions.