41d1aae test: use flock when calling mkfs.btrfs

2 files Authored by mrc0mmand 2 years ago, Committed by Yu Watanabe 2 years ago,
    test: use flock when calling mkfs.btrfs
    
    As stated in https://github.com/systemd/systemd/issues/21819#issuecomment-1064377645
    `mkfs.btrfs` doesn't hold the lock for the whole duration of
    `mkfs.btrfs`, thus causing unexpected races & test fails. Let's
    wrap the `mkfs.btrfs` calls in an flock wrapper to mitigate this.
    
    Hopefully fixes: #21819
    
        
file modified
+1 -0
file modified
+46 -4