vinput: Fix registering / unregistering of the input device