core: add function to get CPU id/serial number

See RIOT-OS/thirdparty_cpu#19 for real world example.
I think that would be better than nothing.

For native you have the id under your control.