#6314 Change atomic intrinsics to accept raw pointers

Changes to atomic intrinsics, as per #6314.