Fix Base.lock_rows() if the argument is a generator
Fix Base.lock_rows() if the argument is a generator

Change-Id: Idb8d1e121e22ce89058a45102282e094fcdcfcc1
Reviewed-by: Priya Joshi <3c6cfa6f57440adfc837c4ad04483313acbc2582@morganstanley.com>

guillaume-philippon/aquilon,quattor/aquilon,guillaume-philippon/aquilon,quattor/aquilon,quattor/aquilon,guillaume-philippon/aquilon