Efforts to legalize historical horseracing machines in North Carolina and Maine have come up short during their legislative sessions this year, as two more states struggle to allow the devices that bear a striking resemblance to slot machines but are technically not casino games.