Fix deadlock on plugin shutdown. Upstream-commit: 57cf20c2ca4359b58baa0b008fda1e18890bb56d Component: engine