fix hang when lru crawler started from commandline

Thanks for Jason Chan for the tip. Test coverage wasn't using the commandline
arguments. Added a test and it hung, and this fixes it.