Initial implementation of mutex handling on Windows.