Thousands flee Egyptian prison