Universal lock manager for inter-process synchronization in PHP