Lock the canvas, making it unavailble for drawing
Source position: graphics.pp line 1077
public procedure TCanvas.Lock; virtual;