keys: make key_serial() a function if CONFIG_KEYS=y