Stiffness and atomic-scale friction in superlubricant MoS$_2$ bilayers