Start adding shared mutex for reference counter protection.