cgo: add queue lifo c code