usb: gadget: Use atomic operations to access online and error flags

Signed-off-by: Manu Gautam <mgautam@codeaurora.org>