Helper bucketstore flush() function.