Introduce total timeout value in ct_telnet:expect/3 options

OTP-11689
Add test cases