Added locking extenions.  Modified atomic container wrappers to be more generic.