Update boost/detail/interlocked.hpp for Mingw-w64

I patched interlocked.hpp to eliminate "undefined reference to `interlocked...`" errors in Mingw-w64 on Windows.
It compile successfully now with version 4.8.1 and 4.8.2, but I didn't test it with other compilers.