Update firewall.php

Aquired exclusive lock while writing the log