atomic: declare platform_atomic_thread_fence as static inline