How about something like this?
Extra Long Bed Rail
Might require a little modification to make a secure attachment under the thin cushions of the side dinette, but I know others have made similar products work on the front bunks.
Knowing my wife, though, our solution would have been simpler. I take the side bunk, and the baby sleeps behind my wife on the big bed. Wish we had started at that age!