Have a look at the readLock
option for your route B file consumer endpoint - http://camel.apache.org/file2.html
Used by consumer, to only poll the files if it has exclusive read-lock on the file (i.e. the file is not in-progress or being written). Camel will wait until the file lock is granted.