Concurrency control in heterogeneous distributed database systems