A man from Swindon who evaded escape and seemingly taunted police from a beach abroad has been jailed for burglary.