The 27-year-old man had a “brain snap” when he decided to take the 1 kilogram bar while he was working at Perth Mint’s refinery in December 2016, a court is told.