Dynamics of relativistic transparency and optical shuttering in expanding overdense plasmas