If you're planning to get a loan from friends or family, find out what can go wrong before money exchanges hands.