Release the correct lock in pkg create