wrap flock() calls around signal file access