Fix fd leak in mail.c with ForkForMail enabled