Flush log file pointers on SIGHUP

Useful for logrotate.