Clean up SMCOpen() code. Simplify TMP convert

- Based on swift-smc code
- Use IOReturn in SMCOpen()