Four-alarm fire displaces 39 residents in North Texas