Fix slapos node prune usages with root slapos

- also write pid file to prevent race condition
 - check user is root

See merge request !267
3 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
passed SlapOS-Master.UnitTest-Master

01:48:44

passed SlapOS.Eggs.UnitTest-Master.Python2

00:27:42

passed SlapOS.Eggs.UnitTest-Master.Python3

00:11:46