dr-api removed unnecessary lock when deleting partition