Is there any way to lock a file in D. I'm writing an application that needs to support concurrent access to a file, and would like to lock the file during write operations to prevent other process instances from reading invalid data.