Fixed the passcode not locking

if the change/remove passcode view was on screen when going to
background.