Revert "Only use _ReadWriteBarrier on MSVC"

This reverts commit 7b4828b68ced7e92a3399f9e48da8726b6b315f0.
Revert "Revert "Only use _ReadWriteBarrier on MSVC""

This reverts commit 1402ad42121e7cd32cec863a01d70f9b6cb8b031.