TS-1892: Move msync and friends to ink_memory.h

ink_memory.h is really a better place for memory management APIs.
Also rename them from safe_*() to ats_*() to fit with our standard
conventions.