improved FunctionLock & fixed PlayerManager sync