Attempts to lock the specified file segment. If both start and length are zero, the entire file is locked.
true if the lock was successful, and false if the specified file segment was already locked.
See Implementation
Attempts to lock the specified file segment. If both start and length are zero, the entire file is locked.