[PATCH 2/2] add synchronisation to system library