Bug 975346 - Part 1: General functions for EffectChains

1. Support GenEffectChain() for LayerComposite.
2. Support GenEffect() for CompositableHost.
3. Move AutoLock to compositeHost.