fix(util/script_state_manager): crash when compiling with msys2 stack

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>