CAMEL-6413: Fixed race condition in file consumer, as read lock release should be executed last.