Disable back button during UI transitions.