Do high-velocity clouds form by thermal instability?