Fixed possible race-condition in FD cache patches.