[] spawn {
    private _a = 0;
    [] call {
        systemchat format["%1",_a]; // "0"
    };
};
[] call {
    private _a = 0;
    [] spawn {
        systemchat format["%1",_a]; // "any"
    };
};