Mechanically Regulated Rotation of a Guest in a Nanoscale Host