add lock to input_queue