Fixed Synchronous Insertions in Distributed Tables

Fixed synchronous insertions in Distributed tables (insert_distributed_sync = 1).