imap: fix a warning of unused result

The BIO_reset return value was not used, we were always returning
success on reset().

Signed-off-by: Guillaume Clement <gclement@baobob.org>