Add a protection for creating the Minimizer and DistSampler  with the plugin manager in multithreads
(thanks for Andreas, see ROOT-5335)
Fix also the DistSampler