Why isn't pthread_rwlock_rdlock() deadlocking???