fix version parsing in _rev
add lock on save to avoid conflict from simultaneous sync and user save
add TimeService, fix multi lock on successful onConflict call