Lock-release gravity currents propagating over roughness elements