fix u_close bug, and recreate our getumask pipe after a fork