BUG: restore api of npy_PyFile_DupClose in python2

breaks matplotlib