You could lose equity when you refinance, but that’s not true in every case. Here’s what you need to know.