Add config_getptr_unlocked() for use in non-MT applications.