pthread_rwlock_timedwrlock implementation for Linux/SH.