MdeModulePkg/SmmCore: Fix memory leak on Profile unregistered.