A cruise ship passenger is behind bars after allegedly trying to smuggle cocaine potentially worth $3m into Sydney.