Split filedesc lock into directory lock and entry lock in attempt
of solving a lock order reversal.