add lock in handler pool