Extending homeomorphisms from punctured surfaces to handlebodies