[PATCH 4.14 080/117] UAS: fix deadlock in error handling and PM flushing work