usb/mtp: avoid dynamic stack allocation