Fix unittest security preamble by adding the patch for ticket #4739

(in sync with vendor)