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.

Sync is also used when the module is done compiling and the module is
not responsible for packaging or linking. This could be considered an
issue, but it is not really in the way of compilation.

Maybe in the future this will also be handled.

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