Arduino - 'setLocked' was not declared in this scope

Shouldn't I see

#include <Servo.h>
Servo myservo;

somewhere?

Jacques