You can do that with any two objects that your hawks wings cant fit through.
I was literally AFK (pun intended) when it happened too, came back to the screen and I was just wedged there
I wasn't even there when it happened. I had walked away, started the server, and when I came back my hawk was just chilling there. Not sure why it didn't go boom, must not have been moving fast enough for the game to think I needed to suicide for it.