puppet3: make puppet::self::master work in puppet 3

see https://tickets.puppetlabs.com/browse/PUP-1237 for a rationale of
this change.

Change-Id: Ic45fb66bda1313702ff087f25aeefd926adcda7b
Signed-off-by: Giuseppe Lavagetto <glavagetto@wikimedia.org>