in reply to How to apply flock

Use an external file to lock the DB File, as described in RE: File Locking (using the Search box wouldl have given you an answer right away BTW).