Assessing the quality of the random phase approximation for lattice constants and atomization energies of solids