[IMAPx] Automatically limit maximum number of concurrent connections

In case a user has set more connections than the server has allowed,
the IMAPx may limit the connection count automatically, instead of
panic and close already established connections.