camel_imapx_conn_manager_close_connections: Avoid possible deadlock

A deadlock could happen by calling CamelIMAPXServer functions with
the CamelIMAPXConnManager write lock locked, where there was a race
condition between the write lock and the server's queue lock. Closing
all the connections without holding the write lock should avoid
the deadlock.