Plans to sell off a library building in Folkestone have been branded "a mistake and a lazy option" by the Kent town's MP.