Upstream changes: 1.36 Sun 24 29 2018 - If the "permissions" param is set, use the same permissions for the lock file that the log file will use. [github #21]