read-modify-write issue in lpop