= core: Fix ThresholdSampler to use minimum-elapsed-time setting

Also fixes usage of ThresholdSampler if "threshold" is configured
as sampling strategy.