imaging: Fixing pid

When pulse2-imaging-server starts, bad pid number can be written in
/var/run/pulse2-imaging.pid file.

If pid < 10000 it's OK
If pid >= 10000, only 4 first digits are written in pid file

This commit fix it