Bridlington Town left it late to claim all three points in a dramatic home victory over Lincoln United, with captain Tom Allen smashing home a stoppage-time winner.