initial implementation of rwlock, with busy-waiting
change busy-waiting for pthread_cond_t wait