module: compile: phaseSync: sync on module ready

Modifying the phases so sync is only used when the module has fully
compiled and is ready for "ar" or "ld" to be used.

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>