Add a note about file locking to javadoc.