Merge changes Ifddb5cb8,I8735ef6c,Ifd33c28e into main

* changes:
  snapuserd: Factor setpriority/settid calls into a helper.
  snapuserd: Add a harness to run tests without dm-user specific code.
  snapuserd: Add an IBlockServerFactory abstraction.