engines/sg: ensure we complete the right command for sync IO