setup lock dir (used by rewrite mod)