Replaced item_by_params with internal_retrieve.
Added mutex locks to MockDpInfo to ensure added/deleted flows in specs are thread safe.