WL#7914: Remove custom rwlock windows implementation

Affects: Server-5.7   —   Status: Complete

This worklog consist of three parts:

1) Remove custom rwlock windows implementation.
   Currently we have a custom rwlock implementation that we use if
   TryAcquireSRWLockExclusive() is not supported. But since this function is
   now supported on all our Windows platforms (Windows 7+, Server 2008 R2+),
   it can be removed.
2) Enable SAFE_MUTEX mutex wrappers on Windows debug builds.
   Currently we only use SAFE_MUTEX on non-Windows platforms. SAFE_MUTEX 
   includes extra runtime checks that are useful for debugging.
3) General refactoring of mutex, rwlock and condition variable code.
   Improve consistency, eliminate dead code, replace macros with inline 
   functions, extract to separate header files.

Note that this will only affect the SQL layer and not InnoDB since InnoDB
uses its own implementation.

User Documentation
==================

http://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-5.html