Do not just silently fail if surface creation fails

Some apps do not check if they actually got a surface (e.g. bootanimation)
So this helps the track crashes down to the cause.

Change-Id: I6e74bdb52ad7ebe260b0ec1777c585781f6bbd42
(cherry picked from commit f2f564513ff98e9eb5aae51182474a3e40bf6b3b)
[2/2] Speed up booting on multicore devices.

Add multithreading support.

Change-Id: I13630de9d75d13c0368d261b3564b787067b65b1

Patchset: 8
http://review.cyanogenmod.org/#/c/59908/
(cherry picked from commit 209ce1bece9aeb4188d685a3036f261723bf5231)