MDL-34472 libraries: add deprecated warning to get_context_instance()
MDL-34472 libraries: Remove usage of get_context_instance() from core