aligned mailsasl_init_lock style with other similar functions