ENH: release gil for indexing operations

closes gh-4310