Fix compilation error in OTP < 24
Fix compilation error in OTP < 24

This fixes this error:

src/ranch.erl:201: variable 'TransOpts' unsafe in 'try' (line 196)
src/ranch.erl:201: variable 'Transport' unsafe in 'try' (line 196)

ninenines/ranch