Continues work to remove/push down RPC locks from #7013.
createrawtransaction is a pure utility function that doesn't use main's data structures, so it does not require that lock.
Despite being a one-line change, needs to be reviewed carefully. Although I didn't find any, there may be unguarded use of main data structures deeper in the call chain. Not meant for 0.12