Frozen singularities in M and F theory