[PATCH 4.9 57/80] UAS: fix deadlock in error handling and PM flushing work