A jury has found former Australian cricketer Stuart MacGill guilty of taking part in the supply of cocaine in Sydney.