Entanglement properties of degenerate four-wave mixing of matter waves in a periodic potential