i386-gnu-nat: Use ptid from regcache instead of inferior_ptid