US supermarket operator the Great Atlantic & Pacific Tea Co (A&P) has reported a narrower third-quarter loss, helped by a solid performance in Canada.