amd64 wakeup: rework trampoline page allocation
(cherry picked from commit 1c56781cc915d1d2957e5b53717513193476d777)