Updated multiple waiting thread behaviour for cond_wait and multiple locked readers for rwlock_rdlock