Fixes #2307 Regex lock bottleneck (#2308)
Fixes #2307 Regex lock bottleneck (#2308)


couchbaselabs/sync_gateway,couchbaselabs/sync_gateway,ceejatec/sync_gateway,ceejatec/sync_gateway,ceejatec/sync_gateway,ceejatec/sync_gateway,couchbaselabs/sync_gateway,tophatch/sync_gateway,tophatch/sync_gateway,couchbaselabs/sync_gateway,tophatch/sync_gateway,tophatch/sync_gateway