Rebased enc sync

Missing sync_db_write_lock doc