How an inmate could easily grab a prison officer's gun in a car park is being examined by the NSW state coroner.