threonine aldolase activity [GO_0004793] - Virtual Fly Brain