Update dojo/_base/unload examples to AMD syntax, refs #17468

Clarified the example for addUnload. Converted addWindowUnload example to AMD syntax.