Add missing TLS validation getter method

The IMAP client has a method for setting the state of TLS validation.
There is however no method for getting that value. Add the appropriate
getter method to the client.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>