Create lock directory writable for swift

Closes #91