PrefLib: Allow to Block the calling thread, if needed (thanks to Karl
for this trick!)