Add '-delete' flag to 'ad_parameter_cache' in 'parameter::set_value', to delete the value from cache before setting, making the value coherent amongst threads (thanks Antonio for the fix).
parameter::get_from_package_key: check as well in "global" package parameter and make clear, that lookup from non-singleton packages does not make sense.