try fix lock
bugfix when waiting for config file for MongoDB