[Issue 8803] [PATCH] Add -L option for using external locking