add comments to help understanding pthread

No code modification. Comments only.

I wonder if such pull request will also be welcomed. Anyway, it is a bit difficult when I read the implementation of pthread_rwlock for the first time.