fix deadlock when more than 1 plugin is installed Upstream-commit: 5de2e6d7b8494e662a7b53c287dad25bc6139747 Component: engine