ssh: Fixed a NULL pointer dereference on OOM condition
tests: Document use of the MEMDEBUG_LOG_SYNC macro