This commit removes any use of pthread.h from the RWLock header. It also adds a win32 implementation of RWLock. Support for interprocess RWLocks is left to a later PR. Due to the API design of SRWLock the unlock methods must match the lock method.