Correct, you can't patch source files into the distributable like that. If you're not able/willing to upgrade, then your only option is to create a fork Kibana, and merge the patch yourself. Once merged in your version, you can build your own OSS distribution with the patch applied.