[S390] ptrace: use common code for simple peek/poke operations