[runtime]Do an alignment check before using the atomic op.