Assert slave not master.

Test asserting on master that has to be slave.

Review: https://reviews.apache.org/r/22779
Fixed a compiler error due to ambiguous UNREACHABLE in Subprocess.