A trio's attempt to get away with £380 of tools from B&Q could have led to someone being seriously hurt, after one of the thieves stabbed a "brave" off-duty police inspector with a screwdriver as he tried to stop them driving away, a judge has said.