Investment giants ranging from private equity shops to banks are betting big on house-flipping loans.