wifi: Fix crash at destruction time when WifiPhy logging is enabled
This fixes issue #1063 (closed), use of 'this' is not suited when it is called at destruction time
This fixes issue #1063 (closed), use of 'this' is not suited when it is called at destruction time