Repro steps for 19w07a:
start a new world, creative mode
place down a bed
/time set night
sleep in the bed (works)
make a nether portal, and use it
return to the overworld through portal
/time set night
sleep in the bed (works)
move out of the spawn chunks, et /tp 1000 ~60 1000
place down a bed
/time set night
sleep in the bed (works)
make a nether portal, and use it
return to the overworld
/time set night
sleep in the bed (you should now be stuck in the bed interface)
The desync after visiting the nether, or visiting the end for a second time is still there in 19w04a
Using a portal to go to the Nether now triggers a desync in 19w03c. Also, going to the End a second time (ie after killing the dragon and leaving) also does it.
These seems similar MC-142114, but that's been closed.
I think I can repro this every time on 19w02a.
Make a new world, in creative mode with cheats on.
Enter said world.
/tp to somewhere 1500 blocks from spawn (or fly if you want)
put down a bed
summon a cat owned by yourself (this is probably optional, but help illustrate things)
hopefully the cat will sit on the bed... remember where it is anyway
exit and save the game
re-enter
the cat will not be visible, but can be heard
/time set night
sleep in the bed
for me, on two different machines, and four different worlds, I now "drop" out of the bed when night is over, but cannot exit the bed interface
you can /kick yourself to shut down the world
FWIW the steps given in the Spigot bug don't reproduce the bug in vanilla either.