acquire timestamp before lock