usb: gadget: Add device attribute to determine gadget state