pack-objects: merge read_lock and lock in packing_data struct