fix race condition in lob saving