add fast-import sync command

Causes fast-import to reply `sync` to the file descriptor
set with --cat-blob-fd` or `stdout` if unspecified.
This command is useful to synchronize after checkpoint
command is issued, to make sure all refs are flushed.
sync with fast-export after checkpoint issued