Is this safe? Getting a ptr to something in the flow, then unlocking the flow and then using the ptr again? What safe guards are in place to make sure the tx pointed to doesn't get freed? In the previous code we looked up the tx per sig, which is probably slower, but at least we're not using a ptr from a previous lock...