Fix graphical glitch that led to an empty toolbar after unlocking the screen, caused by UIActionSheets not being dismissed before the lock screen appears.
Change auto-locking behavior to abort a heading correction in progress in order to avoid the situation where it is accidentally started while putting the phone into the pocket, leading to the PDR not being continued.