Static memory allocation for ipc4_to_str function

I guess it's better this way. Mostly I was wondering if you accept pull requests...