MDL-41181 function moveto_module does not modify properties of object

instead it returns the new value for module visibility
MDL-41181 No need to reset modinfo cache after moveto_module()

it is already reset inside the function