The Arens regularity of certain Banach algebras related to compactly cancellative semigroups