If you're cashing out some of your home equity or rolling your closing costs into your new loan amount, you'll lose equity when you refinance your mortgage.