Bug 975346 - Part 1: General functions for Effects

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