A road has reopened after a bomb disposal team dealt with an unexploded ordnance device found in a South Lanarkshire town.