mds: introduce explicit DaemonState instead of int

Signed-off-by: John Spray <john.spray@redhat.com>