atomic: add atomic_interrupt_fence()
(cherry picked from commit e2494f7561c852951d8ac567314f5e12f19ee7af)