gdb_server: fix GDB_BUFFER_SIZE usage, fix unaligned access during bulk transfers