The dtor deleted the input event spy. But ownership of spies is with Input. This change ensures that there is no double delete and passes ownership of TabletModeManager also to input, to get it deleted in the right moment.
BUG: 388910
Superseeded by 8510f31340ac78d76df69a3bccb001f610613913