Lock MACROs cast to volatile