TryLock - examines the Lock state, and performs Lock if necessary
Source position: graphics.pp line 1140
public function TCanvas.TryLock: Boolean;