Fix bdev_sync build errors