Morecambe secured top spot in their Bristol Street Motors Trophy group – and a home tie in the next round – despite losing against Carlisle United on Tuesday.