Use file system lock to prevent concurrency problems.


git-svn-id: https://svn.calendarserver.org/repository/calendarserver@14073 e27351fd-9f3e-4f54-a53b-843176b1656c