Fix ownership of logfile after creating/opening