Add explicit store barriers when releasing locks.