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