plugins: add more locks around registration/enable (#3437)

3 jobs for lock-plugin-enable in 2 minutes and 4 seconds (queued for 2 seconds)
latest