[test] fix racy test in pkg/plugins Upstream-commit: a1fc3852dace4b07996b8189a236938d9e0e21ae Component: engine