minor performance improvement while parsing multipart request

Another one in the set of backporting file/rfc1867 related fixes.

Original commit:
https://github.com/php/php-src/commit/16bd11062ec87b1478321c964d5739a9887b8ae0#diff-eb2caada78cc7ed9dbeabe07d25eecf4