Allow path and exception for Lock middleware to be procs