test: Improve check-docker

Instead of changing ownership of the socket, we properly add "admin"
to the "docker" group.

Also, we restart docker.service instead of stopping it since stopping
it somehow causes the socket to have root:root ownership afterwards.

Closes #1489