[PATCH 5.4 148/168] UAS: fix deadlock in error handling and PM flushing work