A free boundary problem for caloric measure