kernelbase: Implement GetMachineTypeAttributes().
kernelbase/tests: Add tests for GetMachineTypeAttributes().