add lock to shrink active/inactive list