Update firewall.php

Aquired exclusive lock while writing the log
Update firewall.php
Merge pull request #2 from vladbalmos/master

Lock file on write log