Make sure to create /dev/shm with 1777, bug #476278

However, this seems to affect only a small set of scenarios, since
I don't have any problems here with ~arch openrc and systemd when
using udev.