Make synchronize on a class static-sensitive

Signed-off-by: Ross Allan <rallanpcl@gmail.com>