I didn't know of Twig namespacing just until now. But what always worked for
extends and includes is to point to the template you want to extend/include directly, with the path starting from Drupal web root. So in your case it needs to say:

    {% extends "core/themes/bartik/templates/block.html.twig" %}