[PATCH v2 2/6] add synchronisation to system library