avutil/opt: ensure the right buffer is used in set_string_number()