Revert "mediawiki.log: Do not dynamically redefine mw.log.deprecate"

This reverts commit d1e99dd5b20b44ccc3737025501cb81670885dea.

Change-Id: I4f3ef65e63f7865da64b2efa0c5b2951e5930415
Merge "Revert "mediawiki.log: Do not dynamically redefine mw.log.deprecate"" into REL1_22