Implement :lock option to avoid compiling all routes again and again
when using this gem in threaded environment