/var/lib/mediawiki/extensions/Math is in mediawiki-extensions-math 2:1.0+git20120528-8.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/share/mediawiki-extensions/math
/usr/share/mediawiki-extensions/math