Man who used legal loophole to live rent-free for years in NYC hotel found unfit to stand trial