My personal thoughts are that the loan to Business A is not a refi. That loan is not paying off and replacing another loan. It is only paying down the loan; a balance remains after the proceeds from your loan to A are applied.
It does not appear that you are financing a loan to Business B. If you were and it's actually Business B that is fully paying off the loan, funds to B would be reportable.
Are you likely to have a timing issue of Business B putting in their funds first, so that A's loan ends up fully paying off the original debt? If not, I stand by the loan to A not being reportable.
_________________________
Expect the worst, hope for the best and you'll never be disappointed.