fixed problem trying to write to samba-antivirus log in threads