[PATCH 5.6 147/167] UAS: fix deadlock in error handling and PM flushing work