bsdacct: switch credentials for writing to the accounting file