Sync fds after daemonizing