Thief trapped in car after failed break-in