fix bdev_sync for 3.x kernels