Once a cube is locked, you can also modify its material by dragging it from the content browser into the scene