extmod/vfs: Replace VLA in proxy func with small, static sized array.
extmod/vfs: Replace VLA in proxy func with small, static sized array.

VLAs can be expensive on stack usage due to stack alignment requirements,
and also the fact that extra local variables are needed to track the
dynamic size of the stack.  So using fixed-size arrays when possible can
help to reduce code size and stack usage.

In this particular case, the maximum value of n_args in the VLA is 2 and so
it's more efficient to just allocate this array with a fixed size.  This
reduces code size by around 30 bytes on Thumb2 and Xtensa archs.  It also
reduces total stack usage of the function: on Thumb2 the usage with VLA is
between 40 and 48 bytes, which is reduced to 32; on Xtensa, VLA usage is
between 64 and 80 bytes, reduced to 32; on x86-64 it's at least 88 bytes
reduced to 80.

tralamazza/micropython,henriknelson/micropython,ryannathans/micropython,pozetroninc/micropython,micropython/micropython-esp32,tralamazza/micropython,dmazzella/micropython,henriknelson/micropython,bvernoux/micropython,micropython/micropython-esp32,torwag/micropython,torwag/micropython,tobbad/micropython,pozetroninc/micropython,lowRISC/micropython,trezor/micropython,infinnovation/micropython,henriknelson/micropython,pfalcon/micropython,MrSurly/micropython,dmazzella/micropython,adafruit/circuitpython,tobbad/micropython,adafruit/micropython,MrSurly/micropython,AriZuu/micropython,swegener/micropython,adafruit/circuitpython,trezor/micropython,MrSurly/micropython-esp32,trezor/micropython,pramasoul/micropython,micropython/micropython-esp32,MrSurly/micropython-esp32,pramasoul/micropython,infinnovation/micropython,kerneltask/micropython,lowRISC/micropython,MrSurly/micropython,blazewicz/micropython,torwag/micropython,pramasoul/micropython,pfalcon/micropython,micropython/micropython-esp32,micropython/micropython-esp32,pfalcon/micropython,ryannathans/micropython,pramasoul/micropython,selste/micropython,infinnovation/micropython,blazewicz/micropython,AriZuu/micropython,MrSurly/micropython-esp32,selste/micropython,bvernoux/micropython,henriknelson/micropython,tobbad/micropython,MrSurly/micropython-esp32,pozetroninc/micropython,tobbad/micropython,adafruit/micropython,trezor/micropython,kerneltask/micropython,lowRISC/micropython,selste/micropython,ryannathans/micropython,swegener/micropython,torwag/micropython,adafruit/circuitpython,pfalcon/micropython,henriknelson/micropython,selste/micropython,adafruit/circuitpython,pozetroninc/micropython,AriZuu/micropython,dmazzella/micropython,ryannathans/micropython,adafruit/micropython,adafruit/circuitpython,MrSurly/micropython-esp32,MrSurly/micropython,kerneltask/micropython,bvernoux/micropython,pfalcon/micropython,pozetroninc/micropython,torwag/micropython,lowRISC/micropython,bvernoux/micropython,pramasoul/micropython,blazewicz/micropython,blazewicz/micropython,adafruit/micropython,MrSurly/micropython,trezor/micropython,lowRISC/micropython,bvernoux/micropython,infinnovation/micropython,AriZuu/micropython,kerneltask/micropython,tobbad/micropython,adafruit/circuitpython,adafruit/micropython,tralamazza/micropython,swegener/micropython,swegener/micropython,kerneltask/micropython,swegener/micropython,dmazzella/micropython,infinnovation/micropython,tralamazza/micropython,selste/micropython,blazewicz/micropython,ryannathans/micropython,AriZuu/micropython