Add SRWLock implementation of rwlocks for Win32
Drop support for THREADSAFE on Windows XP

This makes libgit2 require Windows Vista or newer if it is going
to be compiled with the THREADSAFE option
Trying to fix Win32 warnings