added lock to dir_lookup