Fix gssapi with multiple connections
Fix gssapi with multiple connections

Fix a gssapi issue where threads beyond the first would not
 be able to authenticate against the imap server. This is
 done by using the connection lock around the gssapi
 authentication code and resetting (and releasing) the
 kerberos state after success so that subsequent connections
 may make use of kerberos.

Signed-off-by: Scott Henson <5ae2dd2c46e24755cb46e84bdb57d72650d377b3@foolishpride.org>
Reviewed-by: Sebastian Spaeth <98dcb2717ddae152d5b359c6ea97e4fe34a29d4c@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <347709267ddd1958560c4c317ea3fd613f10a719@laposte.net>

frioux/offlineimap,frioux/offlineimap