fix RAM accounting to use max(deletes-in-current, deletes-in-tombstones)