Fix potential deadlock between masquerade and chan_local.