Config class added synchronize double check

Double check that instance is still null after synchronizing thread.