A Motor-Driven Mechanism for Cell-Length Sensing