A jury hears a NSW Corrections officer acted lawfully when he shot and killed a shackled Indigenous man in Lismore.