so have you checked it is properly unlocked after the reboot? At least the lock file will persist on the disk I suppose...

Probably is better to use EBox::Util::SHMLock instead, as /run/shm will be cleaned after the reboot