serial: core: Switch to use DEVICE_ATTR_RO()