LP#1739044: fix lock file detection in eg-pbx-allocator.pl