Fixes a bug in sandbox.Sandbox._process_fork() while writing to the stdin