filed: Use '\0' for NULL termination

Use '\0' for NULL terminating strings instead of 0.
Also adjust max string size for the archipelago dir where the files are located.
filed: Add separate directory for locks

Add a separate directory for locks. If this directory is provided, filed uses
this directory to place the lockfiles. Otherwise, it falls back on the previous
behavior.
python: Add support for lockdir for filed