CAMEL-8134 should not add synchronisation if the CachedOutputStream closedOnCompletion option is false