Input: keyboard - fix lack of locking when traversing handler->h_list