Getting a loan from loved ones can pay off — with some parameters.