Restricted Lie algebras in which every restricted subalgebra is an ideal