audit: refactor hold queue flush