Works here, undocked and docked. Did you check whether spacebar is assigned to Play/Stop in the MIDI Editor section of the action list as well? You also want to look in MIDI Event List Editor.
I looked at a virgin, portable Reaper install and spacebar with no modifier key is by default assigned to Play/Stop, as you would prefer it to be. You must have changed that at some point