The responsibility of affording any license to enter adjoining property shall rest upon the owner of the adjoining property involved; and in case any tenant of such owner fails or refuses to permit the owner to afford such license, such failure or refusal shall be a cause for the owner to dispossess such tenant through appropriate legal proceedings for recovering possession of real property. Nothing in this chapter shall be construed to prohibit the owner of the property undertaking construction or demolition work from petitioning for a special proceeding pursuant to Section 881 of the Real Property Actions and Proceedings Law.