Selective receive requires that the ref is created in the scope of the receive.