The `mongoConnect()` functions is used before starting the REST server, so no risk of concurrency problem at this point. However, probably is a good idea using also semaphores here, to be homogeneous in all calls to the driver.