IMF connection for energetic protons observed at Ulysses via mid-latitude solar wind rarefaction regions