Backport some pm functions to be ready for: Two flags for
 async suspend_noirq and suspend_late Asynchronous threads for resume_noirq
 ...
PM-sleep-Asynchronous-threads-for-resume_noirq
PM-sleep-Asynchronous-threads-for-resume_noirq
Add missing mutex_unlock() call to prevent deadlocks.