bridge: Hold ref during cockpit_channel_ready()

If a callback from cockpit_channel_ready() closes and unrefs the
channel, then we need to keep a reference so we can cleanly
finish and return from the function.