Merge pull request #3255 from mickdermack/pr-hidrace Fix a race condition on shutdown between Memory and CWII_IPC_HLE_Device_hid