lib/param: Make and use common lpcfg_map_parameter