A sailboat has flipped over during a sailing competition in Sydney.