CAMEL-7088: Close resources in file read lock. Thanks to Leonid Marushevskiy for the patch.