[gdb/testsuite] Fix gdb.base/info-shared.exp for remote target