Lock the canvas so it can't be changed
Source position: fpcanvas.pp line 60
protected procedure TFPCanvasHelper.Lock;