Best practices using opportunistic locks (oplock) to manage exclusive file access by applications