Make rwlock try and timed functions optional.
* configure.ac: Check for pthread_rwlock_rdlock, pthread_rwlock_wrlock, pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock, pthread_rwlock_tryrdlock, pthread_rwlock_trywrlock. * src/npth.c (trylock_func_t): New type. (busy_wait_for): New function. (npth_mutex_timedlock) [!HAVE_PTHREAD_MUTEX_TIMEDLOCK]: Reimplement in terms of busy_wait_for. (npth_rwlock_rdlock, npth_rwlock_timedrdlock) [!HAVE_PTHREAD_RWLOCK_TRYRDLOCK]: Skip trylock. (npth_rwlock_wrlock, npth_rwlock_timedwrlock) [!HAVE_PTHREAD_RWLOCK_TRYWRLOCK]: Skip trylock call. (npth_rwlock_timedrdlock) [!HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK]: Use busy_wait_for. (npth_rwlock_timedwrlock) [!HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK]: Use busy_wait_for.