recordshell.cc: eliminate race condition if process wants network too soon

(also eliminate in_network_namespace)