Added mutex locks for AMDeviceGetInterfaceType