[xla:cpu] NFC: Add factory constructor to all CPU thunks
[xla:cpu] NFC: Add factory constructor to all CPU thunks

Factory construction method allows to add additional verification without having to rely on CHECK/DCHECK or pushing it higher up the stack to ThunkEmitter.
