Moved reference ampersand to the right for do_writes.
Moved reference ampersand to the right for init_clone.
Made do_writes use block_writes properly.
Fixed problems with io_callbacks (that were passed in the serializer_write_t objects) not being called, with zero-writes support, fixed two dead lochs.