fwk: Fix element state update
After initializing each element, the framework should update the element state to INITIALIZED. However, the module state is updated instead. The module state should only be updated after all elements are initialized. This patch rectifies the error.
Signed-off-by: Tarek El-Sherbiny tarek.el-sherbiny@arm.com