[Linux-stable-mirror] [added to the 4.1 stable tree] metag/ptrace: Preserve previous registers for short regset write