Move lock resource to its own file.
Allow sync of large files (~100MB) (#4836).
Add test for syncing many small documents (#4836).
Make couch tests use only one couch instance.
Merge remote-tracking branch 'refs/remotes/drebs/feature/4836_allow-sync-of-large-files' into develop