A burglar who was caught after triggering a Home Alone-style trap at a property in Northumberland has been jailed.