Skew lattices in rings