Input: fix locking issue in /proc/bus/input/ handlers