uml: check length in exitcode_proc_write()