Make a demo that crashes join_faces
Possible partial fix
Second partial fix
Extend example/mesh/periodicity
Write p8est_connectivity_face_neighbor_corner