Polish multithreaded write access.

Signed-off-by: Jean-Yves Tinevez <jean-yves.tinevez@pasteur.fr>
Javadocs.

Signed-off-by: Jean-Yves Tinevez <jean-yves.tinevez@pasteur.fr>