fix doc typo and fix lock namespace.