Pass mutex struct in public