making scene graph more generic
replace mutex with std mutex