Generalise store mem instruction in C herd.