pub(super) fn prepare_data_dir(config: &Config, version: &str)
Sets the data folder up: environment, locks, the stamp and the startup diagnostics.