s3: Add a test for proper brlock cleanup