Use another lock for file events
Lock the whole time while processing events
Avoid extra 1ms sleep
Initialize locks properly
More locks
More reasonable lock
Copy lua string reply
Do not defer reply len
Use file event instead of time event for better performance