Fix OTP 18.0 queue deprecation warnings.