make stdlog_log() call reentrant

... by moving formatting buffers to the stack.