Test of a CMS MSGC tracker prototype in a high-intensity hadron beam