Automatically convert directory request locks

Signed-off-by: Tom Wright <tom@inflatablecookie.com>