lockdep: Add helper function for dir vs file i_mutex annotation