check if 'sync' method actually exists before calling -- anydbm does not have sync()
method
Merge pull request #10 from ikreymer/dev.fix-sync

check if 'sync' method exists before calling it