tsan: add interceptors for pthread_spinlock_t and ptread_rwlock_t for deadlock detector