GO:0018114: threonine racemase activity
Catalysis of the reaction: L-threonine = D-threonine.