Fix crash in gperftools during exit

Change-Id: If6a29547d5281a64dd7140683b6c4a981703b00e