Document function.
Add mutex protection to mysql_init() call.