Move lock reource 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.