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