Android: guard overlapping Back key sequences
The predictive Back callback synthesizes a press and release
through the same handlers as physical Back events.
Track whether a Back press is pending. Ignore another initial
press while that state is set, and ignore a release when no
press is pending. Continue forwarding repeat presses and keep
the existing keyboard-dismissal handling.
Clear the pending state when unregistering the callback so
it does not survive an activity pause.
Pick-to: 6.12 6.8
Change-Id: Ifaa7838a984d0663dcc250348c3032a8f596d39d
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>