[FDLEAK] Fix race in detection limit

Signed-off-by: David Goulet <dgoulet@efficios.com>