fix name-provider race condition
fix name-provider race condition

When using NameProvider, and calling different public functions
concurrently, a race condition can occur in accessing the index
map.
changing the location of the lock fixes those race conditions

go-openapi/swag