Add posix lock on all iptables, ebtables and ipset commands.

This to prevent race condition when 2 or more instances of the script run simultaneously and could lead to a kernel EAGAIN message, which was ignored by the script