Will Lankshear struck with two minutes remaining to enable Middlesbrough to scramble a 1-1 draw with Championship strugglers Derby at the Riverside.