[aml] fix memleak, add queue mutex, cleanup
[aml] more temp AE fixes, this time from https://github.com/xbmc/xbmc/pull/2320
[aml] temp fixes, from frodo 12.1 backports, replace when we merge with 12.1