Tropical Storm Barry strengthens, nears hurricane status