Fix thumb branch rewriting for immediate same-mode branches