Add a couple of automatons

if ( PHP_SAPI !== 'cli' ) used by maintenance/locking/LockServerDaemon.php
if ( PHP_SAPI != 'cli-server' ) used by maintenance/dev/includes/router.php

A script intended for 'cli-server' should be safe for a 'normal' server :)

Change-Id: I74a57944d5cf1088851d968646edd3179e87ea51