context BUGFIX accessing freed memory
context BUGFIX accessing freed memory

When removing modules from context (ly_ctx_destroy() and ly_ctx_clean()),
it is necessary continuously decrease/maintain the size of the modules list
in the context, because the list is accessed when removing deviations/augments.

PavolVican/libyang,PavolVican/libyang,PavolVican/libyang,PavolVican/libyang,PavolVican/libyang