Improve performance of the code handling the frame queue in chan_iax2.