sim: Fix erasure ordering in the futex map.
sim: Fix erasure ordering in the futex map.

Erase an element after one of its components are used to erase an
element of another map. This is an error and causes build breakage in
newer versions of gcc.

Change-Id: I83a00410cbf2ae5fc23b12080cd374965df1a5ac
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/60309
Maintainer: Gabe Black <d3e8afea784ab4a50a2dbf9149d2eaa8478e1cbc@gmail.com>
Reviewed-by: Jason Lowe-Power <92de577f37050ad05b60626d2f17913f40dcb1a2@gmail.com>
Tested-by: kokoro <2ac7b1f3fa578934c95181d4272be0d3bca00121@google.com>

gem5/gem5,gem5/gem5,gem5/gem5,gem5/gem5,gem5/gem5,gem5/gem5,gem5/gem5