Closes GitLab issue #699. Thanks to Rob de Canha-Knight
(@rssfed23) for the report, research, and debug.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This change avoid creating a lock file in the /tmp folder that
is owned by the root user.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>