A wildfire has cut off the return route of dozens of hikers staying in a Glacier National Park backcountry chalet.