Loopholes in state residency requirements have led to an influx of out-of-state investment through ‘ghost owners.’