prompt for master pin in case the addon manager is locked

Should fix http://trac.xbmc.org/ticket/15301

function should be static or const