Modeling quantum entanglement using spacetime metrics that are degenerate along particle worldlines