editors/emacs: Add upstream patches to fix multiple vulnerabilities
Reviewed by: ashish, jrm
MFH: 2023Q1
Security: a75929bd-b6a4-11ed-bad6-080027f5fec9
Differential Revision: https://reviews.freebsd.org/D38810
(cherry picked from commit 8f3485d5de46d268088779e0215d13007409b538)