limit shm->do32bit accesses in child.

Do a single write at the end.
This really needs some locking so it doesn't race with the watchdog
reading this and shm->syscallno. (It segv's when it tries to read
past the end of the wrong syscall table if the race occurs).