Authored by alireza78a. When flock() raises on a concurrent tick, the file descriptor was leaked because the except clause returned without closing it. Adds lock_fd=None init and close in the except path.
Authored by alireza78a. When flock() raises on a concurrent tick, the file descriptor was leaked because the except clause returned without closing it. Adds lock_fd=None init and close in the except path.