adb: add implementations of mutex, recursive_mutex.

Our version of mingw doesn't support std::mutex or
std::recursive_mutex, so implement our own using the Windows primitives.

Bug: http://b/28347842
Change-Id: I4e1d56a89bc5fcb5f859bf5014343697a4a85b77
(cherry picked from commit 903b749f7883394213933f733b902e104ce6dda7)
2 files changed