Add mutex protection around set access Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)