The good news is: the code under resume() is not to be blamed for the lock after coming back from suspend.