Check on glovars.mysql_share_connections moved from detach_backend() to its calling function