Basic lock manager for inter-process synchronization in PHP