[JENKINS-28683] (A)PeriodicWork suuport for dynamically loaded plugins. (cherry picked from commit 1e8c07a4)